package com.aki.ai_property.controller;

import com.aki.ai_property.service.intf.TitleService;
import com.aki.ai_property.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ━━━━━━永无BUG!━━━━━━
 *
 * @author AKI
 * @date 2022/8/31
 */
@RestController
@RequestMapping("/api/title/")
public class TitleController {
    @Autowired
    private TitleService service;
    @GetMapping("all.do")
    public Result all(){
        return service.all();
    }
}
